#include <iostream>
#include <string>

// 结构体示例
struct Student {
    std::string name;
    int age;
    double score;
};

// 类示例
class StudentManager {
private:
    Student students[100];
    int count;

public:
    StudentManager() : count(0) {}

    void addStudent(const Student& student) {
        if (count < 100) {
            students[count++] = student;
        }
    }

    void displayAll() {
        for (int i = 0; i < count; i++) {
            std::cout << "Student " << i + 1 << ":" << std::endl;
            std::cout << "Name: " << students[i].name << std::endl;
            std::cout << "Age: " << students[i].age << std::endl;
            std::cout << "Score: " << students[i].score << std::endl;
            std::cout << "-------------------" << std::endl;
        }
    }
};

int main() {
    // 使用结构体
    Student s1 = {"Zhang San", 18, 85.5};
    Student s2 = {"Li Si", 19, 92.0};

    // 使用类
    StudentManager manager;
    manager.addStudent(s1);
    manager.addStudent(s2);

    std::cout << "Student Information List:" << std::endl;
    manager.displayAll();

    return 0;
}